package com.xnyzc.lhy.mis.service.cms.vehicle;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.mis.entity.result.cms.driver.CmsDriverRes;

import java.util.List;

/**
 * @Description 分配车辆
 * @Author zhuyubin
 * @Date 2019-08-26 11:39
 **/
public interface ICanAssignVehicleService {

    /**
     * 获取司机信息并关联车辆
     * @param sysUserId 后台用户id
     * @param type 数据等级
     * @param tag 租户
     * @param current 当前页
     * @return
     */
    IPage<CmsDriverRes> selectDriverPage(Long sysUserId, List<String> type, String tag, Long current, String name, String phone, String vehNo);

    /**
     * 可分配车辆列表
     * @param sysUserId 后台用户
     * @param tag 租户
     * @param current 当前页
     * @return
     */
    IPage selectOaSysVehiclePage(Long sysUserId, String tag, Long current, String vehNo, Long officeId);

    /**
     * 分配车辆
     * @param sysUserId 当前管理员id
     * @param driverId 司机id
     * @param vehicleId 车辆id
     * @param tag 租户
     * @return
     */
    String assignVehicle(Long sysUserId, Long driverId, Long vehicleId, String tag);

    /**
     * 取消分配车辆
     * @param sysUserId 后台用户
     * @param tag 租户
     * @param driverId 司机id
     * @param vehicleId 车辆id
     * @return
     */
    String cancelAssignVehicle(Long sysUserId, String tag, Long driverId, Long vehicleId);
}
